(*
   Copyright (c) 2023-2024 Semgrep Inc.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public License
   version 2.1 as published by the Free Software Foundation.

   This library is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
   LICENSE for more details.
*)
(* Location extraction for different AST_dockerfile constructs

   All functions end either in '_loc' or '_tok'.
*)

val docker_string_fragment_loc :
  AST_dockerfile.docker_string_fragment -> Tok_range.t

val docker_string_loc : AST_dockerfile.docker_string -> Tok_range.t
val instruction_loc : AST_dockerfile.instruction -> Tok_range.t
val command_loc : AST_dockerfile.command -> Tok_range.t
val param_loc : AST_dockerfile.param -> Tok_range.t
val param_or_ellipsis_loc : AST_dockerfile.param_or_ellipsis -> Tok_range.t
val image_spec_loc : AST_dockerfile.image_spec -> Tok_range.t
val env_pair_loc : AST_dockerfile.env_pair -> Tok_range.t
val label_pair_loc : AST_dockerfile.label_pair -> Tok_range.t
val expose_port_loc : AST_dockerfile.expose_port -> Tok_range.t
val str_or_ellipsis_loc : AST_dockerfile.str_or_ellipsis -> Tok_range.t
val array_or_paths_loc : AST_dockerfile.array_or_paths -> Tok_range.t
val healthcheck_loc : AST_dockerfile.healthcheck -> Tok_range.t
val wrap_tok : 'a * Tok.t -> Tok.t
val wrap_loc : 'a * Tok.t -> Tok_range.t
val ident_or_metavar_loc : AST_dockerfile.ident_or_metavar -> Tok_range.t
val key_or_metavar_loc : AST_dockerfile.key_or_metavar -> Tok_range.t
